package Day07_21;

public class Test_Array {
    public static void main(String[]  args) {
        //1.静态给数组赋值
        //2.动态给数组赋值
        int[] arr1 = {1,2,3,4000000};
        int[] arr2 = new int[4];
        for( int i=0; i<4; i++){
            System.out.println( arr2[i] );
        }
        //Scanner s = new Scanner(System.in);
        String[] arr3 = new String[4];
        for( int i=0; i<4; i++){
            System.out.println( arr3[i] );
        }
        Object o1 = new Object();
        Object o2 = new Object();
        Object o3 = new Object();
        Object o4 = new Object();

        Object[] arr4 = {o1,o2,o3,o4};
        for( int i=0; i<4; i++){
            System.out.println( arr4[i] );
        }


    }
}
